   # 3.不输入密码, 输入用户名、昵称、确认密码，勾选协议，点击注册
        self.driver.find_element(By.CSS_SELECTOR,"#username").clear()
        self.driver.find_element(By.CSS_SELECTOR,"#nickname").clear()
        self.driver.find_element(By.CSS_SELECTOR,"#password").clear()
        self.driver.find_element(By.CSS_SELECTOR,"#passwordRepeat").clear()
        checkbox=self.driver.find_element(By.CSS_SELECTOR,"#policy")
        if checkbox.is_selected():  # 检查复选框是否被选中
            checkbox.click()  # 取消勾选
        self.driver.find_element(By.CSS_SELECTOR,"#username").send_keys("testky")
        self.driver.find_element(By.CSS_SELECTOR,"#nickname").send_keys("testky")
        self.driver.find_element(By.CSS_SELECTOR,"#passwordRepeat").send_keys("1234")
        self.driver.find_element(By.CSS_SELECTOR,"#submit").click()
        time.sleep(1)
        ForumDriver.getScreenShot() # 截图
        text=self.driver.find_element(By.CSS_SELECTOR,"#signUpForm > div > div:nth-child(4) > div > div").text
        assert text=="密码不能为空"